#!/usr/bin/env python3.6

import re
import os

path=os.getcwd()
# print(path+"/heades")
heades_path=path+"/heades"
# print(heades_path)
def read_Headers():
    headerdict = {}
    f = open(heades_path, encoding="Utf-8")
    headersText = f.read()
    # print(headersText)
    headers = re.split("\n", headersText)
    # headers =headers
    # print(headers)
    for header in headers:
        if header:
            result = re.split(":",header,maxsplit=1)
        # print(result)
        # if result:
            headerdict[result[0]]=result[1].strip()
    f.close()
    return headerdict
if __name__ == '__main__':
    a=read_Headers()
    print(a)